<template>
  <div id="box">
    <el-container>
      <el-header>
        <AdminHeader key="header"></AdminHeader>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <left-list key="left"></left-list>
        </el-aside>
        <el-container>
          <el-main>
            <breadcrumb></breadcrumb>
            <router-view key="data"></router-view>
          </el-main>
          <el-footer>Footer</el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import AdminHeader from "../../components/AdminHeader"
import leftList from "../../components/leftList";
import breadcrumb from "../../components/breadcrumb";
import { mapState } from "vuex";
export default {
  name: "admin",
  data(){
    return {
      msg:"我是admin",
    }
  },
  components:{
    AdminHeader,
    leftList,
    breadcrumb
  },
  created() {
  },
  methods:{
    // ...mapMutations("model",[]),
    // ...mapActions("model",[]),
    addcount(){
    },
    sycacount(){
      this.$store.dispatch("model/setadd", 10)
    }

  },
  computed:{
    ...mapState("login",["perms"]),
    // ...mapGetters("model",["dbcount"])

  },
  watch:{
  }

}
</script>

<style scoped lang="less">
html, body{
  height: 100%;
}
#box{
  height: 100%;
}


.el-header, .el-footer {
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
}

.el-container {
  height: 100%;
}

</style>